package com.anlu.concurrent.ch5;

/**
 * <p>
 * Description:TODO 详细描述
 * <p>
 * Copyright: 天津联想协同科技有限公司
 * <p>
 *
 * @author anlu
 * @date 2021/10/27 17:00
 */
public class TestMap8 {
    public static void main(String[] args) {
        int c = 13;
        int n = c - 1;
        n = n >>> 1;
        System.out.println("第一次n >>> 1   "+n);
        n = n >>> 1;
        System.out.println("第2次n >>> 1   "+n);
        n = n >>> 1;
        System.out.println("第3次n >>> 1   "+n);
        n |= n >>> 1;
        System.out.println("n |= n >>> 1   "+n);
        n |= n >>> 2;
        System.out.println("n |= n >>> 2   "+n);
        n |= n >>> 4;
        n |= n >>> 8;
        n |= n >>> 16;
        n=n+1;
        System.out.println("n="+n);
    }
}
